<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!-- 全局css引入 必须 -->
<link href="style/style.css" rel="stylesheet" type="text/css">
<link href="style/global.css" rel="stylesheet" type="text/css"><script type="text/javascript" src="<%=basePath%>/js/global.js"></script>
<!-- 结束 -->
<!-- 用到表单验证必须引入 -->
<jsp:include page="/vailidateInclude.jsp" />
<!-- 结束-->
<script type="text/javascript">
		<!--
		function doSub()
		{
				if(window.document.getElementById("title").value==''){
					alert("公告标题不能为空!");
				    window.document.getElementById("title").focus();
					return false;
				}
				var body = encodeURIComponent(FCKeditorAPI.GetInstance("bean.content").GetXHTML(true));
				if(body==''){
					alert("公告内容不能为空!");
					return false;
				}
		}
-->
</script>
<div class="rightCon" align="center">
	<div class="rightTitle2">
		<h3>
			<s:property value="nav" escape="false"/>
		</h3>
	</div>
	<form action="updateNoticeSub.do" method="post" id="form"
		onsubmit="return doSub()" class="required-validate">
		<table class="formTable">
			<colgroup>
				<col class="formLabel" align="left" width="15%">
				<col align="left" />
			</colgroup>
			<tr>
				<td align="right">
					公告标题：
				</td>
				<s:hidden name="dic.id" id="id"></s:hidden>
				<td width="85%" title="公告标题">
					<s:textfield name="bean.title" id="title" cssClass="required"
						size="60"></s:textfield>
				</td>
			</tr>
			<tr class="xgTr1">

				<td align="right">
					<div align="right">
						公告内容：
					</div>
				</td>
				<td colspan="3" title="公告内容" width="85%">
					<FCK:editor instanceName="bean.content" width="90%" height="400px"
						toolbarSet="Default">
						<jsp:attribute name="value">${bean.content}</jsp:attribute>
					</FCK:editor>
				</td>
			</tr>
			<s:hidden name="bean.releaser" id="releaser" />
			<s:hidden name="bean.id" id="id" />
			<s:hidden name="bean.releasedate" id="releasedate"></s:hidden>
			<s:hidden name="bean.times" id="times"></s:hidden>
		</table>
		<table class="form_submit_bar">
			<tr>
				<td>
					<input class="buttonOk" id="button2" type="submit" value="保存" />
					<input class="buttonReset" id="button2" type="reset" value="重置" />
				</td>
			</tr>
		</table>
	</form>
</div>